package com.kitty.listener.event;

import com.kitty.game.role.model.Role;
import com.kitty.game.equip.model.RoleEquip;
import com.kitty.listener.BasePlayerEvent;
import com.kitty.listener.EventType;
import lombok.Getter;

/**装备改造等级改变事件*/
@Getter
public class EquipUpgradeLevelChangeEvent extends BasePlayerEvent {
    private Role role;
    private RoleEquip roleEquip;
    private short prevUpgradeLevlel;
    private short upgradeLevlel;

    public EquipUpgradeLevelChangeEvent(EventType evtType, Role role, RoleEquip roleEquip, short upgradeLevlel) {
        super(evtType, role);
        this.role = role;
        this.roleEquip = roleEquip;
        this.upgradeLevlel = upgradeLevlel;
    }

    public EquipUpgradeLevelChangeEvent(EventType evtType, Role role, RoleEquip roleEquip, short prevUpgradeLevlel, short upgradeLevlel) {
        this(evtType, role, roleEquip, upgradeLevlel);
        this.prevUpgradeLevlel = prevUpgradeLevlel;
    }
}
